import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

let routes = [{
		path: "/",
		name: "home",
		component: () => import('../view/home/Index.vue'),
		meta: {

		}
	},
	{
		path: "/goods/detail",
		name: "goods_detail",
		component: () => import('../view/goods/detail.vue'),
		meta: {

		}
	},
	{
		path: "/goods/step",
		name: "step",
		component: () => import('../view/goods/step.vue'),
		meta: {}
	},
	{
		path: "/goods/finish",
		name: "finish",
		component: () => import('../view/goods/finish.vue'),
		meta: {}
	},
	{
		path: "/404",
		name: "404",
		component: () => import('../view/error/404.vue'),
		meta: {

		}
	},
	{
		path: "*", // 路由不存在置于最底部
		redirect: "/404",
		meta: {

		}
	}

];
const router = new VueRouter({
	mode: 'history',
	routes
})

export default router
